﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CMSAR.Domain
{
    public class WidgetInstance
    {

        public virtual int Id { get; set; }
        public virtual WidgetType WidgetType { get; set; }
        public virtual Page Page { get; set; }

        /// <summary>
        /// Gets or sets container name where widget instance will be injected
        /// </summary>
        public virtual string Container { get; set; }

        /// <summary>
        /// Gets or sets position of widgetinstance in container
        /// </summary>
        public virtual int ContainerOrdinal { get; set; }

        public WidgetInstance()
        {
            WidgetType = new WidgetType();
            Page = new Page();
        }

       
    }
}
